package com.cdc.animation;

import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void animDraw(View view) {
        openActivity(AnimationDrawableActivity.class);
    }

    private void openActivity(Class<? extends AppCompatActivity> claz){
        Intent intent=new Intent();
        intent.setClass(this,claz);
        startActivity(intent);
    }

    public void vevtor(View view) {
        openActivity(VectorActivity.class);

    }

    public void animatorSet(View view) {
        openActivity(AnimatorSetActivity.class);
    }
}
